﻿namespace MultiDAQ_Analysis.Calculation.Parameters
{
    public class WaterSampleParameters : MeasurementParameters
    {
        public override string MeasurementType => "WaterSample";

        public double WaterVolume { get; set; } = 20.0; // L (1-99L)
        public double TotalResidueAmount { get; set; } = 10.0; // mg (1-9999mg)  
        public double TestedSampleMass { get; set; } = 30.0; // mg (1-5000mg)
        public bool UseStandardEfficiency { get; set; } = true; // true=标准源效率，false=工作源效率

        public override bool Validate()
        {
            return WaterVolume >= 1 && WaterVolume <= 99 &&
                   TotalResidueAmount >= 1 && TotalResidueAmount <= 9999 &&
                   TestedSampleMass >= 1 && TestedSampleMass <= 5000;
        }
    }
}